<?php
abstract class ModelBase 
{
	protected $db;

	public function __construct()
	{
		$config = Config::singleton();
		$this->db = new DB($config->get('dbhost'), $config->get('dbuser'), $config->get('dbpass'),$config->get('dbname'));
	}
}
?>